<template>
  <div>
    <div class="box">
      <div class="sign">
        <h3>在线教育系统</h3>
        <el-form
          :model="ruleForm"
          :rules="rules"
          ref="ruleForm"
          label-width="100px"
          class="demo-ruleForm"
        >
          <!-- 用户名 -->
          <el-form-item label="用户名" prop="name">
            <el-input v-model="ruleForm.name"></el-input>
          </el-form-item>
          <!-- 邮箱 -->
          <el-form-item label="邮箱" prop="emit">
            <el-input v-model="ruleForm.emit"></el-input>
          </el-form-item>
          <!-- 密码 -->
          <el-form-item label="密码" prop="password" >
            <el-input v-model="ruleForm.password" show-password></el-input>
          </el-form-item>
          <!-- 确认密码 -->
          <el-form-item label="确认密码" prop="passwore1" show-password>
            <el-input v-model="ruleForm.password1" show-password></el-input>
          </el-form-item>
          <!-- 身份 -->
          <el-form-item label="身份" prop="status">
            <el-select v-model="ruleForm.status" placeholder="请选择身份">
              <el-option label="管理员" value="rights"></el-option>
              <el-option label="普通员工" value="staff"></el-option>
            </el-select>
          </el-form-item>
        </el-form>
         <el-button type="primary">注册</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      ruleForm: {
        name: "",
        emit:'',
        password:'',
        passwor1:'',
        status:''
      },
      rules: {
        name: [
          { required: true, message: "请填写用户名", trigger: "blur" },
        ],
        status: [
          { required: true, message: "请选择身份", trigger: "change" },
        ],
         emit: [
          { required: true, message: "请填写邮箱号", trigger: "blur" },
        ],
       
       
      },
    };
  },
  methods: {},
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang='scss' scoped>
.box {
  width: 100vw;
  height: 100vh;
  background-color: #2d3a4a;
  display: flex;
  justify-content: center;
  align-items: center;
  .sign {
    width: 400px;
    height: 400px;
    // border: 1px solid #fff;
    h3 {
      color: #fff;
      text-align: center;
      margin-bottom: 10px;
    }
    .el-button{
        width: 300px;
        height: 30px;
        line-height: 10px;
        margin-left: 100px;
    }
  }
}
</style>
